#include "app_host.h"
#include "protocol.h"
#include "pid.h"

#include "motor.h"

int start = 0;

extern Motor_t _motor[4];

void app_host_task(void)
{
	uint32_t ActualVal = _motor[0].pid.ActualVal;
    uint32_t TargetVal = _motor[0].pid.TargetVal;
    if(start == 1)
    {
        set_computer_value(SEND_FACT_CMD, 	CURVES_CH1, &ActualVal, 1); // 实际值
        set_computer_value(SEND_TARGET_CMD, CURVES_CH1, &TargetVal, 1); // 目标值
        set_computer_value(SEND_P_I_D_CMD, 	CURVES_CH1, &_motor[0].pid.Kp, 3); // PID值
    }
    receiving_process();

}



















